Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 14 Feb 2026 11:20:13 +0000 (11:20 +0000)
committerPeter Blackman <peterb@debian.org>
Sat, 14 Feb 2026 11:20:13 +0000 (11:20 +0000)
commit250d5fda243bfe7bdb7973c84564c655b0591100
tree50057791f74628db35027ce78b31804340b9a502
parent454cc470432a87fef0edf7585da87b8e6832d217
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas